{include file="header.html"}
<body class="gr">

<div class="navBar navBar-hidden">
	<!--<a class="left" href="wap.php?app=cart&act=index"><i class="member-cart badge"><sub></sub></i></a>-->
	<div class="titleView">会员</div>
	<a class="right" href="wap.php?tpl=member.set"><i class="member-set"></i></a>
</div>

<div class="member-index main-bottom width-wrap">
	<div class="topView">
		<div class="infoView">
			<div class="avatar" style="{if $member->id>0 && $member->avatar!=''}background-image:url({$member->avatar});{/if}"></div>
			{if $member->id>0}
			<span>{$member->name}</span>
			{else}
			<div class="btnView">
				<a href="wap.php?tpl=login">登录</a>
				<a href="wap.php?tpl=register">注册</a>
			</div>
			{/if}
		</div>
	</div>
	
	<section>
		<ul class="tableView tableView-light">
			<li><a href="wap.php?tpl=member.integral"><h1><em class="ico3"></em>我的积分</h1></a></li>
			<li><a href="wap.php?app=member&act=order&integral_order=1"><h1><em class="ico6"></em>积分商城订单</h1></a></li>
		</ul>
	</section>
</div>

<div class="footer">
	<a class="ico1" href="wap.php"></a>
	<a class="ico2" href="wap.php?app=category&act=index"></a>
	<a class="ico5 this" href="wap.php?app=member&act=index"></a>
</div>

{include file="footer.html"}
<script>
$(function(){
	$('.navBar .right, section a').checklogin();
	$(window).scroll(function(){
		if($(window).scrollTop()>=$('.topView').height()-$('.navBar').height()){
			$('.navBar').removeClass('navBar-hidden');
		}else{
			$('.navBar').addClass('navBar-hidden');
		}
	});
});
</script>